package com.library.entity;

import java.sql.Date;

/**
 * 学生
 */
public class Student {

    private String sno; //学号
    private String username; //姓名
    private String type; //类型
    private String collage; //学院
    private String major; //专业
    private Date birth; //出生年月日
    private String originPlace; //籍贯
    private String password; //登陆密码
    private Integer id; //id

    public Student() {
    }

    public Student(String sno, String username, String type, String collage, String major, Date birth, String originPlace, String password, Integer id) {
        this.sno = sno;
        this.username = username;
        this.type = type;
        this.collage = collage;
        this.major = major;
        this.birth = birth;
        this.originPlace = originPlace;
        this.password = password;
        this.id = id;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCollage() {
        return collage;
    }

    public void setCollage(String collage) {
        this.collage = collage;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getOriginPlace() {
        return originPlace;
    }

    public void setOriginPlace(String originPlace) {
        this.originPlace = originPlace;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sno='" + sno + '\'' +
                ", username='" + username + '\'' +
                ", type='" + type + '\'' +
                ", collage='" + collage + '\'' +
                ", major='" + major + '\'' +
                ", birth=" + birth +
                ", originPlace='" + originPlace + '\'' +
                ", password='" + password + '\'' +
                ", id=" + id +
                '}';
    }
}
